package com.hmall.api.pay;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * TODO
 *
 * @Author mr.wu
 * @Data #{DATE} #{TIME}
 */
@FeignClient(name = "pay-service",path = "/pay-orders")
public interface PayClient {
    @GetMapping
    public Integer selectPay(@RequestParam("orderId") Long orderId);


    @GetMapping("/updateStatus")
    public void updateStatus(@RequestParam("status") Integer status,@RequestParam("orderId") Long orderId);
}
